<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    /* 定义字体 */
    @font-face {
      font-family: myFont;
      src: url("./fonts/仓耳小丸子.ttf")
    }

    @font-face {
      font-family: electronicFont;
      src: url("./fonts/Digital.TTF")
    }

    /* 使用字体 */
    p{
      font-family: myFont;
    }

    h1{
      font-family: electronicFont;
      color: orange;
    }
  </style>
</head>

<body>
  <p>北京你好</p>
  <h1>123456</h1>
</body>

</html>